/*
 * Copyright (C) 2016 Baidu, Inc. All Rights Reserved.
 */
package me.cuilei.springbootdemo.user;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * Created by cuilei05 on 16/9/27.
 */
@Entity(name = "galaxy_user")
public class User implements Serializable {
    @Id
    private Long userId;

    @Column
    private String userName;

    @Column
    private int userType;

    public User() {
    }

    public User(Long id, String name) {
        this.userId = id;
        this.userName = name;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getUserType() {
        return userType;
    }

    public void setUserType(int userType) {
        this.userType = userType;
    }
}
